use crate::dto;
use serde::{Deserialize, Serialize};
use validator::Validate;
use wanmesh_common::validator::validate_string_is_not_empty;

pub type AddRequest = dto::core::candidate_path_segment_list::AddParams;

#[derive(Serialize, Deserialize, Validate, Debug, Clone)]
pub struct DeleteRequest {
    #[validate(custom(function = "validate_string_is_not_empty"))]
    pub candidate_path_id: String,
    #[validate(custom(function = "validate_string_is_not_empty"))]
    pub segment_list_id: String,
}
